package com.situ.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value ="t_cart")
@Schema(description = "购物车")
public class TCart {
    @TableId(type = IdType.AUTO)
    @Schema(description = "购物车id")
    private Integer cid;

    @Schema(description = "用户id")
    private Integer uid;

    @Schema(description = "商品id")
    private Integer pid;

    @Schema(description = "商品价格")
    private Long price;

    @Schema(description = "商品数量")
    private Integer num;

    @Schema(description = "创建人")
    private String createdUser;

    @Schema(description = "创建时间")
    private Date createdTime;

    @Schema(description = "修改人")
    private String modifiedUser;

    @Schema(description = "修改时间")
    private Date modifiedTime;
}